package com.jf.ai.etl.writers;

import org.springframework.ai.document.Document;
import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2025-07-25
 * Time:3:44
 */
@Component
public class JfVectorWriter {
    private final VectorStore vectorStore;
    public JfVectorWriter(VectorStore vectorStore) {
        this.vectorStore = vectorStore;
    }
    public void writeDocuments(List<Document> documents) {
        vectorStore.add(documents);
    }
}
